package com.ac.api.equipment.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 生产设备信息表
 * </p>
 *
 * @author dc
 * @since 2025-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Equipment", description="生产设备信息表")
public class Equipment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备唯一编号")
    @TableId(value = "equipment_id", type = IdType.AUTO)
    private Integer equipmentId;

    @ApiModelProperty(value = "设备名（焊线机/固晶机）")
    private String name;

    @ApiModelProperty(value = "设备类型(可执行工序)")
    private String type;

    @ApiModelProperty(value = "实时状态")
    private String status;

    @ApiModelProperty(value = "当前温度（℃）")
    private Float currentTemp;

    @ApiModelProperty(value = "温度阈值（±2℃）")
    private Float tempThreshold;

    @ApiModelProperty(value = "所属工序区id")
    @TableField(value = "production_task_id",updateStrategy = FieldStrategy.IGNORED)
    private Integer productionTaskId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;
    @ApiModelProperty(value = "json设备参数")
    @TableField(value = "p_json",updateStrategy = FieldStrategy.IGNORED)
    private String pJson;

}
